package com.ruiysoft.controller.mdse.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruiysoft.controller.integralmdse.vo.InnrIntegralMdseVo;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import java.util.Objects;

/**
 * OrderSkuListVo
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-04-27T04:09:41.533+08:00")

public class OrderSkuListVo {
  @JsonProperty("skuId")
  private Long skuId = null;

  @JsonProperty("spuId")
  private Long spuId = null;

  @JsonProperty("shopId")
  private Long shopId = null;

  @JsonProperty("category")
  private Long category = null;

  @JsonProperty("unitPrice")
  private Long unitPrice = null;

  @JsonProperty("costPrice")
  private Long costPrice = null;

  @JsonProperty("listPrice")
  private Long listPrice = null;

  @JsonProperty("quantity")
  private Integer quantity = null;

  @JsonProperty("type")
  private Integer type = null;

  @JsonProperty("integralMdse")
  private InnrIntegralMdseVo integralMdse = null;

  @JsonProperty("photo")
  private String photo = null;

  @JsonProperty("status")
  private Integer status = null;

  @JsonProperty("skuName")
  private String skuName = null;

  public OrderSkuListVo skuId(Long skuId) {
    this.skuId = skuId;
    return this;
  }

  /**
   * Get skuId
   * @return skuId
  **/
  @ApiModelProperty(example = "1", value = "")


  public Long getSkuId() {
    return skuId;
  }

  public void setSkuId(Long skuId) {
    this.skuId = skuId;
  }

  public OrderSkuListVo spuId(Long spuId) {
    this.spuId = spuId;
    return this;
  }

  /**
   * spuid
   * @return spuId
  **/
  @ApiModelProperty(example = "1", value = "spuid")


  public Long getSpuId() {
    return spuId;
  }

  public void setSpuId(Long spuId) {
    this.spuId = spuId;
  }

  public OrderSkuListVo shopId(Long shopId) {
    this.shopId = shopId;
    return this;
  }

  /**
   * 商铺id
   * @return shopId
  **/
  @ApiModelProperty(example = "1", value = "商铺id")


  public Long getShopId() {
    return shopId;
  }

  public void setShopId(Long shopId) {
    this.shopId = shopId;
  }

  public OrderSkuListVo category(Long category) {
    this.category = category;
    return this;
  }

  /**
   * 分类名
   * @return category
  **/
  @ApiModelProperty(example = "11", value = "分类名")


  public Long getCategory() {
    return category;
  }

  public void setCategory(Long category) {
    this.category = category;
  }

  public OrderSkuListVo unitPrice(Long unitPrice) {
    this.unitPrice = unitPrice;
    return this;
  }

  /**
   * 销售价
   * @return unitPrice
  **/
  @ApiModelProperty(example = "1", value = "销售价")


  public Long getUnitPrice() {
    return unitPrice;
  }

  public void setUnitPrice(Long unitPrice) {
    this.unitPrice = unitPrice;
  }

  public OrderSkuListVo costPrice(Long costPrice) {
    this.costPrice = costPrice;
    return this;
  }

  /**
   * 成本价
   * @return costPrice
  **/
  @ApiModelProperty(example = "1", value = "成本价")


  public Long getCostPrice() {
    return costPrice;
  }

  public void setCostPrice(Long costPrice) {
    this.costPrice = costPrice;
  }

  public OrderSkuListVo listPrice(Long listPrice) {
    this.listPrice = listPrice;
    return this;
  }

  /**
   * 市场价(可能不需要)
   * @return listPrice
  **/
  @ApiModelProperty(example = "1", value = "市场价(可能不需要)")


  public Long getListPrice() {
    return listPrice;
  }

  public void setListPrice(Long listPrice) {
    this.listPrice = listPrice;
  }

  public OrderSkuListVo quantity(Integer quantity) {
    this.quantity = quantity;
    return this;
  }

  /**
   * 库存
   * @return quantity
  **/
  @ApiModelProperty(example = "1", value = "库存")


  public Integer getQuantity() {
    return quantity;
  }

  public void setQuantity(Integer quantity) {
    this.quantity = quantity;
  }

  public OrderSkuListVo type(Integer type) {
    this.type = type;
    return this;
  }

  /**
   * 商品类型（1，普通商品，2，虚拟商品（不需要收货地址））
   * @return type
  **/
  @ApiModelProperty(example = "1", value = "商品类型（1，普通商品，2，虚拟商品（不需要收货地址））")


  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }

  public OrderSkuListVo integralMdse(InnrIntegralMdseVo integralMdse) {
    this.integralMdse = integralMdse;
    return this;
  }

  /**
   * Get integralMdse
   * @return integralMdse
  **/
  @ApiModelProperty(value = "")

  @Valid

  public InnrIntegralMdseVo getIntegralMdse() {
    return integralMdse;
  }

  public void setIntegralMdse(InnrIntegralMdseVo integralMdse) {
    this.integralMdse = integralMdse;
  }

  public OrderSkuListVo photo(String photo) {
    this.photo = photo;
    return this;
  }

  /**
   * 封面图
   * @return photo
  **/
  @ApiModelProperty(example = "http://c.hiphotos.baidu.com/image/pic/item/b2de9c82d158ccbffea08a4c14d8bc3eb13541a3.jpg", value = "封面图")


  public String getPhoto() {
    return photo;
  }

  public void setPhoto(String photo) {
    this.photo = photo;
  }

  public OrderSkuListVo status(Integer status) {
    this.status = status;
    return this;
  }

  /**
   * 上下架状态（1，上架，2，下架）
   * @return status
  **/
  @ApiModelProperty(value = "上下架状态（1，上架，2，下架）")


  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public OrderSkuListVo skuName(String skuName) {
    this.skuName = skuName;
    return this;
  }

  /**
   * spuName+规格值
   * @return skuName
  **/
  @ApiModelProperty(value = "spuName+规格值")


  public String getSkuName() {
    return skuName;
  }

  public void setSkuName(String skuName) {
    this.skuName = skuName;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    OrderSkuListVo orderSkuListVo = (OrderSkuListVo) o;
    return Objects.equals(this.skuId, orderSkuListVo.skuId) &&
        Objects.equals(this.spuId, orderSkuListVo.spuId) &&
        Objects.equals(this.shopId, orderSkuListVo.shopId) &&
        Objects.equals(this.category, orderSkuListVo.category) &&
        Objects.equals(this.unitPrice, orderSkuListVo.unitPrice) &&
        Objects.equals(this.costPrice, orderSkuListVo.costPrice) &&
        Objects.equals(this.listPrice, orderSkuListVo.listPrice) &&
        Objects.equals(this.quantity, orderSkuListVo.quantity) &&
        Objects.equals(this.type, orderSkuListVo.type) &&
        Objects.equals(this.integralMdse, orderSkuListVo.integralMdse) &&
        Objects.equals(this.photo, orderSkuListVo.photo) &&
        Objects.equals(this.status, orderSkuListVo.status) &&
        Objects.equals(this.skuName, orderSkuListVo.skuName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(skuId, spuId, shopId, category, unitPrice, costPrice, listPrice, quantity, type, integralMdse, photo, status, skuName);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class OrderSkuListVo {\n");

    sb.append("    skuId: ").append(toIndentedString(skuId)).append("\n");
    sb.append("    spuId: ").append(toIndentedString(spuId)).append("\n");
    sb.append("    shopId: ").append(toIndentedString(shopId)).append("\n");
    sb.append("    category: ").append(toIndentedString(category)).append("\n");
    sb.append("    unitPrice: ").append(toIndentedString(unitPrice)).append("\n");
    sb.append("    costPrice: ").append(toIndentedString(costPrice)).append("\n");
    sb.append("    listPrice: ").append(toIndentedString(listPrice)).append("\n");
    sb.append("    quantity: ").append(toIndentedString(quantity)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    integralMdse: ").append(toIndentedString(integralMdse)).append("\n");
    sb.append("    photo: ").append(toIndentedString(photo)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    skuName: ").append(toIndentedString(skuName)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

